# -*- coding:utf-8 -*-
from WebautoTest.common.pages.compage import ComPage
from WebautoTest.base.base_ruuner import ParametrizedTestCase
import sys


class LoginTest(ParametrizedTestCase):
    def test_login(self):
        print("testLogin")
        app = {"driver": self.driver, "path": "../Yaml/test.yaml", "caseName": sys._getframe().f_code.co_name}
        page = ComPage(app)
        page.operate()

    def test_login2(self):
        print("testLogin2")
        app = {"driver": self.driver, "path": "../Yaml/test2.yaml", "caseName": sys._getframe().f_code.co_name}
        page = ComPage(app)
        page.operate()

    @classmethod
    def setUpClass(cls):
        super(LoginTest, cls).setUpClass()

    @classmethod
    def tearDownClass(cls):
        super(LoginTest, cls).tearDownClass()
